#ifndef __CONFIG_H
#define __CONFIG_H


//#define USE_SW_DLY

//#define USE_TIMER0
//#define USE_TIMER0_ISR
//#define USE_TIMER1
//#define USE_TIMER1_ISR
//#define USE_TIMER2
//#define USE_TIMER2_ISR
//#include "timer.h"

//#define USE_PWM0
//#define USE_PWM1
//#define USE_PWM2
//#define USE_PWM3
//#include "pwm.h"

//#define USE_UART
//#define USE_UART_SHIFT
//#define USE_UART_ISR
#include "uart.h"

//#define USE_WDT
//#define USE_WDTF_ISR
#include "wdt.h"

//#define USE_SPI
//#define USR_SPI_ISR
#include "spi.h"

//#define USE_I2C
//#define USE_I2C_ISR
//#define USE_I2C_DEMO
#include "i2c.h"

//#define USE_DEE
//#define USE_PGMF_ISR
#include "dee.h"

//#define USE_ROM
//#define USE_ROM_CODE
#include "rom.h"

//#define USE_ADC
//#define USE_ADC_DEMO
//#define USE_TMP_SEN
//#define USE_TMP_SEN_DEMO
//#define USE_TK_ADC_ISR
#include "adc.h"

//#define USE_TK
//#define USE_TK_DEMO
//#define USE_TK_ADC_ISR
#include "tk.h"

//#define USE_KB
//#define USE_KB_ISR
//#define USE_KB_DEMO
#include "kb.h"

//#define USE_MISC
#include "misc.h"

//DRIVER
//#define USE_LED
//#define USE_PL1167
//#define USE_PL1167_DEMO



//APP
/////////////////////////////////////////////////
//KB_RMT
//#define USE_KB_RMT_APP
#ifdef USE_KB_RMT_APP

#ifndef USE_WDT
#define USE_WDT
#endif	//USE_WDT

#ifndef USE_KB
#define USE_KB
#endif	//USE_KB
#ifndef USE_KB_ISR
#define USE_KB_ISR
#endif	//USE_KB_ISR

#ifndef USE_PL1167
#define USE_PL1167
#endif	//USE_PL1167

#ifndef USE_KB
#define USE_KB
#endif	//USE_KB
#ifndef USE_KB_ISR
#define USE_KB_ISR
#endif	//USE_KB_ISR

#ifndef USE_MISC
#define USE_MISC
#endif	//USE_MISC

#ifndef USE_SW_DLY
#define USE_SW_DLY
#endif	//USE_SW_DLY

#ifndef USE_DEE
#define USE_DEE
#endif	//USE_DEE

#endif	//USE_KB_RMT_APP
////////////////////////////////////////////////////
////////////////////////////////////////////////////
//#define USE_PRF_TX
#ifdef USE_PRF_TX

#ifndef USE_WDT
#define USE_WDT
#endif	//USE_WDT
#ifndef USE_WDTF_ISR
#define USE_WDTF_ISR
#endif	//USE_WDTF_ISR

#ifndef USE_PL1167
#define USE_PL1167
#endif	//USE_PL1167

#ifndef USE_MISC
#define USE_MISC
#endif	//USE_MISC

#ifndef USE_SW_DLY
#define USE_SW_DLY
#endif	//USE_SW_DLY

#ifndef USE_DEE
#define USE_DEE
#endif	//USE_DEE

#endif	//USE_PRF_TX
////////////////////////////////////////////////////
////////////////////////////////////////////////////
//#define USE_PRF_RX
#ifdef USE_PRF_RX

#ifndef USE_UART
#define USE_UART
#endif	//USE_UART

#ifndef USE_WDT
#define USE_WDT
#endif	//USE_WDT

#ifndef USE_PL1167
#define USE_PL1167
#endif	//USE_PL1167

#ifndef USE_MISC
#define USE_MISC
#endif	//USE_MISC

#ifndef USE_SW_DLY
#define USE_SW_DLY
#endif	//USE_SW_DLY

#ifndef USE_DEE
#define USE_DEE
#endif	//USE_DEE

#endif	//USE_PRF_RX
////////////////////////////////////////////////////
////////////////////////////////////////////////////
#define PRF_UART
#ifdef PRF_UART

#include "timer.h"

#ifndef USE_LED
#define USE_LED
#endif	//USE_LED

#ifndef USE_UART
#define USE_UART
#endif	//USE_UART

#ifndef USE_UART_ISR
#define USE_UART_ISR
#endif	//USE_UART_ISR

#ifndef USE_WDT
#define USE_WDT
#endif	//USE_WDT

#ifndef USE_PL1167
#define USE_PL1167
#endif	//USE_PL1167

#ifndef USE_MISC
#define USE_MISC
#endif	//USE_MISC

#ifndef USE_SW_DLY
#define USE_SW_DLY
#endif	//USE_SW_DLY

#ifndef USE_DEE
#define USE_DEE
#endif	//USE_DEE

#ifndef USE_TIMER0
#define USE_TIMER0
#endif	//USE_TIMER0

#ifndef USE_TIMER0_ISR
#define USE_TIMER0_ISR
#endif	//USE_TIMER0_ISR

#endif	//PRF_UART
////////////////////////////////////////////////////
////////////////////////////////////////////////////
//#define ISS_DBG
#ifdef ISS_DBG

#ifndef USE_TIMER1_ISR
#define USE_TIMER1_ISR
#endif	//USE_TIMER1_ISR

#endif	//ISS_DBG

////////////////////////////////////////////////////
////////////////////////////////////////////////////
//#define TK_COMM
#ifdef TK_COMM

#define USE_TIMER0_ISR
#define USE_SW_DLY

#endif	//TK_COMM

////////////////////////////////////////////////////
////////////////////////////////////////////////////
//#define WATER_24PIN
#ifdef WATER_24PIN

#define USE_SW_DLY

#endif	//WATER_24PIN

////////////////////////////////////////////////////
////////////////////////////////////////////////////
//#define TM_PWM
#ifdef TM_PWM
#define USE_SW_DLY
#define USE_WDT
#endif	//TM_PWM


#endif	//__CONFIG_H
